package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @description: 帖子传输对象
 * @author: 徐文升
 * @create: 2022-04-17 21:59
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "PostDto", description = "帖子传输对象")
public class PostDto {

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "帖子内容", required = true)
    private String content;
}
